# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        黄周云  
# Name:         test01
# Description:  例7.1
# Author:       ASUS
# Date:         2019/3/7
#-------------------------------------------------------------------------------

def fibs(n):
    result = [0,1]
    for i in range(n-2):
        result.append(result[-2]+result[-1])
    return result
while True:
    value = input('请输入一个整数：')
    if value==":exit":
        break
    n = int(value)
    print(fibs(n))


def test(flag):
    print("这是在函数中打印的信息")
    if flag:
        return
    print("这行信息只有在flag为false时才会输出")
test(False)
print("-------------")
returnvalue = test(True)
print(returnvalue)


